package com.fafu.service.Impl;

import com.fafu.dao.mapper.AreaMapper;
import com.fafu.model.Area;
import com.fafu.service.AreaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import tk.mybatis.mapper.entity.Example;
import util.MyMap;

import java.util.List;
import java.util.Map;

@Service
public class AreaServiceImpl implements AreaService {
    @Autowired
    public AreaMapper areaMapper;

    @Override
    public Map<String,Object> getAreas(Map<String, Object> paramMap){
        List<Area> list = areaMapper.selectAll();
        return new MyMap().put("data",list).toMap();
    }
}
